🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-schema-ref-parser

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers

9.0.9
latest
Source
npm
Version published
Weekly downloads
1.3M
3.64%
Maintainers
3
Weekly downloads
 
Created

What is json-schema-ref-parser?

The json-schema-ref-parser npm package is a tool that can parse JSON Schema files and dereference $ref pointers. This allows you to combine multiple separate JSON Schema files into one resolved schema, validate JSON documents against schemas, and manipulate JSON Schemas programmatically.

What are json-schema-ref-parser's main functionalities?

Dereferencing $ref pointers

This feature allows you to take a JSON Schema that contains $ref pointers to other files or URLs and resolve them into a single JSON Schema object. This is useful for simplifying and flattening schemas that are spread across multiple files.

{"$ref": "http://example.com/my-schema.json"}

Bundle schemas into a single file

This feature lets you take a JSON Schema with $ref pointers to other files in your project and bundle them all into a single JSON Schema file. This can be useful for distribution or for loading a schema from a single file in a browser or other environments where multiple files are not convenient.

{"$ref": "definitions.json#/address"}

Parse JSON Schema to a JavaScript object

This feature allows you to parse a JSON Schema from a string, file, or URL into a JavaScript object. This can be useful for manipulating the schema programmatically or for using it in conjunction with other tools that operate on JavaScript objects.

{"type": "object", "properties": {"name": {"type": "string"}}}

Other packages similar to json-schema-ref-parser

Keywords

json

FAQs

Package last updated on 07 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts